package com.rightsidetech.system.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @Author: yhr
 * @Date: 2021-11-05 13:57
 */
@Data
public class UpdatePasswordReq implements Serializable {
    @ApiModelProperty(value = "token",required = true)
    @NotBlank(message = "token不能为空")
    private String token;
    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^$|^[a-zA-Z0-9_!@#$%^&*?.,:;]{6,20}$", message = "密码由字母数字特殊字符任意组成长度在6-20之间")
    private String password;


}
